package Class01;

public class main {
    public static void main(String[] args) {
        Shape Traingle=new Traingle(3,4,5);
        Shape Circle=new Circle(3.5);
        Shape Rectangle=new Rectangle(10,20);
        System.out.println("该三角形的面积为:"+Traingle.Area()+",周长为:"+Traingle.Perimeter());
        System.out.println("该圆形的面积为:"+Circle.Area()+",周长为:"+Circle.Perimeter());
        System.out.println("该矩形的面积为:"+Rectangle.Area()+",周长为:"+Rectangle.Perimeter());
    }
}
